package com.indusfo.spc.pojo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name="sys_menu ")
public class Menu  implements Serializable{
  /**
   * @Fields serialVersionUID : TODO
   */
  private static final long serialVersionUID = 1L;
  @Id
  @Column(name="menu_id",insertable=false)
  private Integer menuId;
  /*
  部门上级id
  */
  private Integer menuPid;

  /*
  菜单编码
  */
  private String menuCode;
  /*
  菜单名称
  */
  private String menuName;
  /*
  资源路径
  */
  private String tranAdress;
  /*
  图片地址
  */
  private String menuArg;

  /**
   * 菜单类型
   * */
  private Integer menuTypeId;
  /*
  数据字典翻译
  */
  @Transient
  private String menuTypeName;
  /*
  上级菜单编码
  */
  private String menuPcode;
/*
  令牌信息
  */
  private String remark;
  /*
  数据状态
  */
  private Integer dataState;

  private String iconPath;

  //设置菜单的默认关闭,
  @Transient
  private String checked;

  @Transient
  private List<Menu> children;

public Integer getMenuId() {
	return menuId;
}

public void setMenuId(Integer menuId) {
	this.menuId = menuId;
}

public Integer getMenuPid() {
	return menuPid;
}

public void setMenuPid(Integer menuPid) {
	this.menuPid = menuPid;
}

public String getMenuCode() {
	return menuCode;
}

public void setMenuCode(String menuCode) {
	this.menuCode = menuCode== null ? null : menuCode.trim().replace(" ","");
}

public String getMenuName() {
	return menuName;
}

public void setMenuName(String menuName) {
	this.menuName = menuName== null ? null : menuName.trim().replace(" ","");
}

public String getTranAdress() {
	return tranAdress;
}

public void setTranAdress(String tranAdress) {
	this.tranAdress = tranAdress== null ? null : tranAdress.trim().replace(" ","");
}

public String getMenuArg() {
	return menuArg;
}

public void setMenuArg(String menuArg) {
	this.menuArg = menuArg== null ? null : menuArg.trim().replace(" ","");
}

public Integer getMenuTypeId() {
	return menuTypeId;
}

public void setMenuTypeId(Integer menuTypeId) {
	this.menuTypeId = menuTypeId;
}

public String getMenuTypeName() {
	return menuTypeName;
}

public void setMenuTypeName(String menuTypeName) {
	this.menuTypeName = menuTypeName== null ? null : menuTypeName.trim().replace(" ","");
}

public String getMenuPcode() {
	return menuPcode;
}

public void setMenuPcode(String menuPcode) {
	this.menuPcode = menuPcode== null ? null : menuPcode.trim().replace(" ","");
}

public String getRemark() {
	return remark;
}

public void setRemark(String remark) {
	this.remark = remark== null ? null : remark.trim().replace(" ","");
}

public Integer getDataState() {
	return dataState;
}

public void setDataState(Integer dataState) {
	this.dataState = dataState;
}

public String getIconPath() {
	return iconPath;
}

public void setIconPath(String iconPath) {
	this.iconPath = iconPath== null ? null : iconPath.trim().replace(" ","");
}

public String getChecked() {
	return checked;
}

public void setChecked(String checked) {
	this.checked = checked== null ? null : checked.trim().replace(" ","");
}

public List<Menu> getChildren() {
	return children;
}

public void setChildren(List<Menu> children) {
	this.children = children;
}
  
  

}
